<template>
    <fieldset>
        <legend>say Hello</legend>
        <h2>你好</h2>
    </fieldset>
</template>

<script setup>
// 对接口,将后台给的接口,封装成api方法,进行调用,调试返回结果是否有问题
import {getLoginApi} from "@/api/users"
import {onMounted} from "vue"

onMounted(()=>{
    getLoginApi()
    .then(res=>{
        console.log(res)
    })
})

</script>